//index.js
//获取应用实例
const app = getApp()
const util = require('../../utils/util.js')

Page({
  data: {
    hospitalId: ''
  },
  onLoad: function(options) {
    let that = this
    console.log("options>>", options)
    let originList = JSON.parse(options.mayLostList) || []
    console.log("originList>>", originList)
    let mayLostList = []
    for(let i=0;i<originList.length;i++){
      mayLostList = mayLostList.concat(originList[i])
    }
    that.setData({
      hospitalId: options.hospitalId,
      hospitalName: options.hospitalName,
      mayLost: mayLostList
    })
    console.log('mayLost>>', that.data.mayLost)
  },
  onShow: function() {

  },
})